package com.tul.vapp.servicecenter.embedded;

import org.apache.activemq.xbean.BrokerFactoryBean;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Created by jyliu on 2017/8/1.
 */
public class EmbeddedActiveMQBean extends BrokerFactoryBean {

	/**
	 * 日志
	 */
	private static final Logger TRACER = LoggerFactory.getLogger(EmbeddedZookeeperBean.class);

	/**
	 * 是否启动
	 */
	private boolean embeddedStart;


	@Override
	public void afterPropertiesSet() throws Exception {
		if (!embeddedStart) {
			return;
		}
		super.afterPropertiesSet();
		TRACER.info("embedded activMQ start success");
	}

	public void setEmbeddedStart(boolean embeddedStart) {
		this.embeddedStart = embeddedStart;
	}
}
